import request from '@/utils/request'

// 查询个人用户列表
export function listPersonalUser(query) {
  return request({
    url: '/manage-api/business/personalUser/list',
    method: 'get',
    params: query
  })
}
// 会员
export function listMemberUser(query) {
  return request({
    url: '/manage-api/member/user/page',
    method: 'get',
    params: query
  })
}

export function searchPersonalUser(query) {
  return request({
    url: '/manage-api/business/personalUser/list/search',
    method: 'get',
    params: query
  })
}

// 查询个人用户详细
export function getPersonalUser(id) {
  return request({
    url: '/manage-api/business/personalUser/' + id,
    method: 'get'
  })
}

// 新增个人用户
export function addPersonalUser(data) {
  return request({
    url: '/manage-api/business/personalUser',
    method: 'post',
    data: data
  })
}

// 修改个人用户
export function updatePersonalUser(data) {
  return request({
    url: '/manage-api/business/personalUser',
    method: 'put',
    data: data
  })
}

// 删除个人用户
export function delPersonalUser(id) {
  return request({
    url: '/manage-api/business/personalUser/' + id,
    method: 'delete'
  })
}
